package com.itheima.service;

import com.itheima.bean.Employee;
import com.itheima.bean.PageBean;
import com.itheima.common.R;

import javax.servlet.http.HttpSession;

/**
 * @author tang
 * @date 2022/11/21 16:39
 */
public interface EmployeeService {
    R<Employee> login(String username, String password, HttpSession session);

    R<String> add(Employee employee);

    R<PageBean<Employee>> findPage(Integer page, Integer pageSize, String name);

    R<Employee> queryEmployeeById(Long id);

    R<String> editEmployee(Employee employee);
}
